<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <!--用户名和密码必须要叫username和password,否则security无法获取-->
    <form action="/user/login" method="post">
        用户名: <input type="text" name="username">
        <br/>
        密码: <input type="text" name="password">
        <br/>
        <!-- name必须为 remember-me,否则无法识别 -->
        <input type="checkbox" name="remember-me">自动登录
        <input type="submit" value="login">
    </form>

</body>
</html>